package com.atguigu.gmall.product.mapper;

import com.atguigu.gmall.model.product.SpuSaleAttr;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * description:
 * create by sxy 2021/5/11
 */
public interface SpuSaleAttrMapper extends BaseMapper<SpuSaleAttr> {

    //根据spuid查询销售属性及值
    List<SpuSaleAttr> spuSaleAttrList(Long spuId);
    //销售属性及值及选中红边框
    List<SpuSaleAttr> getSpuSaleAttrValueChecked(@Param("skuId") Long skuId,@Param("spuId")  Long spuId);
}

